<div class="stages index">
	<h2><?php echo __('Etapas'); ?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('Nombre'); ?></th>
			<th><?php echo $this->Paginator->sort('Descripción'); ?></th>
			<th><?php echo $this->Paginator->sort('Fecha Inicio'); ?></th>
			<th><?php echo $this->Paginator->sort('Fecha Término'); ?></th>
			<th><?php echo $this->Paginator->sort('Id Proyecto'); ?></th>
			<th class="actions"><?php echo __('Acciones'); ?></th>
	</tr>
	<?php foreach ($stages as $stage): ?>
	<tr>
		<td>
			<?php echo $this->Html->link($stage['Stage']['name'], array('controller' => 'stages', 'action' => 'view', $stage['Stage']['id'])); ?>
		</td>
		<td><?php echo h($stage['Stage']['description']); ?>&nbsp;</td>
		<td><?php echo h($stage['Stage']['init_date']); ?>&nbsp;</td>
		<td><?php echo h($stage['Stage']['finish_date']); ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($stage['Project']['name'], array('controller' => 'projects', 'action' => 'view', $stage['Project']['id'])); ?>
		</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Mostrar'), array('action' => 'view', $stage['Stage']['id'])); ?>
			<?php echo $this->Html->link(__('Editar'), array('action' => 'edit', $stage['Stage']['id'])); ?>
			<?php echo $this->Form->postLink(__('Eliminar'), array('action' => 'delete', $stage['Stage']['id']), null, __('Estas Seguro de Elimnar Etapa del Proyecto # %s?', $stage['Stage']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('{:page} / {:pages}')
	));
	?>	</p>
	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
<div class="actions">
	<h3><?php echo __('Acciones'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Nuevo Etapa'), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('Listar Proyectos'), array('controller' => 'projects', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nuevo Proyecto'), array('controller' => 'projects', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('Listar Avances'), array('controller' => 'previews', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nuevo Avance'), array('controller' => 'previews', 'action' => 'add')); ?> </li>
	</ul>
</div>
